//
//  PersonObjectController.m
//  Secret Santa
//
//  Created by Andrew Cain on 22/10/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "PersonObjectController.h"
#import "SSPerson.h"

@implementation PersonObjectController

- (IBAction) removePerson: (id) sender
{
	[self prepareContent];
	
	NSManagedObjectContext *context = [self managedObjectContext];
	SSPerson *p = [[self selectedObjects] objectAtIndex: 0];
	
	NSLog(@"Removing %@", [p valueForKey:@"name"]);
	
	[p deletePerson];		
}

@end
